package com.fan.analysis.aspect;


import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * 计算程序运行时间的切面
 *
 * @author fan
 * @date 2021/10/01 19:28
 **/
@Aspect
@Slf4j
public class SpendTimeAspect {

    @Pointcut("within(com.fan.analysis.module.preprocessing.call.controller..*)")
    public void inWebLayer() {}


    @Before("com.fan.analysis.aspect.SpendTimeAspect.inWebLayer()")
    public void doAccessCheck() {
        log.info("+++++++++");
    }

}
